Fix make distcheck
authorMartin Nordholts <martinn@src.gnome.org>
Wed, 29 Dec 2010 07:25:50 +0000 (08:25 +0100)
committerMartin Nordholts <martinn@src.gnome.org>
Wed, 29 Dec 2010 07:25:50 +0000 (08:25 +0100)
When we generate the gir-file we need to refer to the source files
relative to the srcdir to support out-of-source-tree builds.

babl/Makefile.am

index 182326513ba335c7cb9239364f7ee0530c4c4cf7..6abf14863cd0b6acb5f99c28b2e1021be23954df 100644 (file)
@@ -99,8 +99,8 @@ Babl-$(BABL_API_VERSION).gir: $(G_IR_SCANNER) $(library_include_HEADERS) $(c_sou
             -DBABL_IS_BEING_COMPILED \
            -I$(top_srcdir) \
            -I$(top_builddir) \
-           $(library_include_HEADERS) \
-           $(c_sources)
+           $(addprefix $(srcdir)/, $(library_include_HEADERS)) \
+           $(addprefix $(srcdir)/, $(c_sources))
 
 girdir = $(datadir)/gir-1.0
 gir_DATA = Babl-$(BABL_API_VERSION).gir